﻿using System.Windows.Controls;
using PSTS.UI.ViewModels;

namespace PSTS.UI.Views.Pages
{
    /// <summary>
    /// Interaction logic for LoginPage.xaml
    /// </summary>
    public partial class LoginPage : Page
    {
        public LoginPage(LoginPageViewModel loginPageViewModel)
        {
            DataContext = loginPageViewModel;
            InitializeComponent();
        }

        private void passwordTb_PasswordChanged(object sender, System.Windows.RoutedEventArgs e)
        {
            (DataContext as LoginPageViewModel).Password = passwordTb.Password;
        }
    }
}
